// 获取档案列表
export const getArchivesList = `
query($plug_id:Int,$page:Int,$park_id:Int,$keywords_type:String,$keywords:String,$order:String){
  getArchivesList(plug_id:$plug_id,page:$page,park_id:$park_id,keywords_type:$keywords_type,keywords:$keywords,order:$order){
    list{
        id
        real_name
        cart_code
        remarks
        driver_id
        time
        contact_days
        plug_name
        mobile
        park
    }
    total
    lastpage
  }
}
`;
// 获取档案详情
export const getArchives = `
query($plug_id:Int,$archives_id:Int){
  getArchives(plug_id:$plug_id,archives_id:$archives_id){
    id
    real_name
    cart_code
    mobile
    remarks
    driver_id
    time
    plug_id
    park
    park_id
    cart_model
    cart_model_id
    line
    line_id
    partner_name
    partner_mobile
    driver_name
    driver_avatar
    driver_mobile
  }
}
`;
// 获取添加外卖单信息
export const getLog = `
query($id:Int,$driver_id:Int){
  getLog(id:$id,driver_id:$driver_id){
    name
    starttime
    endtime
    longitude
    latitude
    locposition
    detailed
    cart_code
    plug_id
    team_id
  }
}
`;
// 获取添加外卖单列表
export const getOrderList = `
query($plug_id:Int,$page:Int,$status:Int,$fa_plug_id:Int,$plug_team_id:Int,$is_get:Int){
  getOrderListByPlug(plug_id:$plug_id,page:$page,status:$status,fa_plug_id:$fa_plug_id,plug_team_id:$plug_team_id,is_get:$is_get){
    list{
        id
        amount
        time
        status
        status_text
        driver_name
        driver_mobile
        cart_code
        address
        plug_name
        plug_mobile
    }
    total
    lastpage
  }
}
`;
// 获取加注价格（不验证）
export const getFillPrice = `
query($price:Float){
  getFillPrice(price:$price){
    wechat_price
    money_price
    wechat_amount
    money_amount
  }
}
`;
// 获取加注价格（验证）
export const getFillPriceByTeam = `
query($price:Float,$driver_id:Int){
  getFillPriceByTeam(price:$price,driver_id:$driver_id){
    type
    team_id
    team_name
    image
    wechat_price
    money_price
    wechat_amount
    money_amount
  }
}
`;
// 获取代理加注列表
export const get_dl_list = `
query($page:Int,$plug_id:Int,$type:String,$starttime:String,$endtime:String){
  get_dl_list(page:$page,plug_id:$plug_id,type:$type,starttime:$starttime,endtime:$endtime){
    list{
        id
        createtime
        driver_name
        money
    }
    total
    lastpage
    money
  }
}
`;
// 获取订单信息（代理服加注单）
export const getOrderInfo = `
query($order_id:Int){
  getOrderInfo(order_id:$order_id){
    order_sn
    createtime
    amount
    total_amount
    cart_code
    driver_name
    driver_mobile
    plug_name
    plug_mobile
    fill_status_text
    fill_amount
    fill_fee
    tui_fee
    score
    fill_name
  }
}
`;